import request from "@/api/request";

export const getSysUserPage = (params: SysUserInfoTypePageParams) => {
  return new Promise<SysUserInfoType[]>(async (resolve, reject) => {
    const res: AxiosResData<SysUserInfoType[]> = await request.get(
      "/sysUser/getUserByPage",
      {
        params,
      }
    );
    resolve(res.data?.result || []);
  });
};
